<?php
namespace app\admin\validate;

use think\Validate;

class Channel extends Validate
{
    protected $connection = 'db_config_aiqi';
    protected $rule = [
        'username'         => 'require|unique:channel',
        'status'           => 'require',
    ];

    protected $message = [
        'username.require'         => '请输入用户名',
        'username.unique'          => '用户名已存在',
        'status.require'           => '请选择状态'
    ];
}